package exercise;

/**
 * @ClassName Immortal
 * @Deacription TODO
 * @Author 谢忠辉
 * @Date 2021/3/16 0016 17:11
 **/
public class Immortal {
    /**
     * 神仙的姓名
     */
    private String name ;
    /**
     * 神仙的性别
     */
    private char gender ;


    public Immortal(){

    }
    public Immortal(String name,char gender){
        this.name = name ;
        this.gender = gender ;
    }

    /**
     * 神仙的过海方法
     */
    public void crossing(){};

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }
}
